Optimal. Leaf size=165 \[ -\frac{(x+8) \left (3 x^2+5 x+2\right )^{5/2}}{6 (2 x+3)^3}+\frac{5 (43 x+93) \left (3 x^2+5 x+2\right )^{3/2}}{48 (2 x+3)^2}-\frac{5 (343 x+736) \sqrt{3 x^2+5 x+2}}{64 (2 x+3)}+\frac{13505 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{256 \sqrt{3}}-\frac{3487}{256} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.109866, antiderivative size = 165, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 5, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.185, Rules used = {812, 843, 621, 206, 724} \[ -\frac{(x+8) \left (3 x^2+5 x+2\right )^{5/2}}{6 (2 x+3)^3}+\frac{5 (43 x+93) \left (3 x^2+5 x+2\right )^{3/2}}{48 (2 x+3)^2}-\frac{5 (343 x+736) \sqrt{3 x^2+5 x+2}}{64 (2 x+3)}+\frac{13505 \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{3} \sqrt{3 x^2+5 x+2}}\right )}{256 \sqrt{3}}-\frac{3487}{256} \sqrt{5} \tanh ^{-1}\left (\frac{8 x+7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 812
Rule 843
Rule 621
Rule 206
Rule 724
Rubi steps
\begin{align*} \int \frac{(5-x) \left (2+5 x+3 x^2\right )^{5/2}}{(3+2 x)^4} \, dx &=-\frac{(8+x) \left (2+5 x+3 x^2\right )^{5/2}}{6 (3+2 x)^3}-\frac{5}{72} \int \frac{(-216-258 x) \left (2+5 x+3 x^2\right )^{3/2}}{(3+2 x)^3} \, dx\\ &=\frac{5 (93+43 x) \left (2+5 x+3 x^2\right )^{3/2}}{48 (3+2 x)^2}-\frac{(8+x) \left (2+5 x+3 x^2\right )^{5/2}}{6 (3+2 x)^3}+\frac{5}{768} \int \frac{(-7032-8232 x) \sqrt{2+5 x+3 x^2}}{(3+2 x)^2} \, dx\\ &=-\frac{5 (736+343 x) \sqrt{2+5 x+3 x^2}}{64 (3+2 x)}+\frac{5 (93+43 x) \left (2+5 x+3 x^2\right )^{3/2}}{48 (3+2 x)^2}-\frac{(8+x) \left (2+5 x+3 x^2\right )^{5/2}}{6 (3+2 x)^3}-\frac{5 \int \frac{-110784-129648 x}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx}{6144}\\ &=-\frac{5 (736+343 x) \sqrt{2+5 x+3 x^2}}{64 (3+2 x)}+\frac{5 (93+43 x) \left (2+5 x+3 x^2\right )^{3/2}}{48 (3+2 x)^2}-\frac{(8+x) \left (2+5 x+3 x^2\right )^{5/2}}{6 (3+2 x)^3}+\frac{13505}{256} \int \frac{1}{\sqrt{2+5 x+3 x^2}} \, dx-\frac{17435}{256} \int \frac{1}{(3+2 x) \sqrt{2+5 x+3 x^2}} \, dx\\ &=-\frac{5 (736+343 x) \sqrt{2+5 x+3 x^2}}{64 (3+2 x)}+\frac{5 (93+43 x) \left (2+5 x+3 x^2\right )^{3/2}}{48 (3+2 x)^2}-\frac{(8+x) \left (2+5 x+3 x^2\right )^{5/2}}{6 (3+2 x)^3}+\frac{13505}{128} \operatorname{Subst}\left (\int \frac{1}{12-x^2} \, dx,x,\frac{5+6 x}{\sqrt{2+5 x+3 x^2}}\right )+\frac{17435}{128} \operatorname{Subst}\left (\int \frac{1}{20-x^2} \, dx,x,\frac{-7-8 x}{\sqrt{2+5 x+3 x^2}}\right )\\ &=-\frac{5 (736+343 x) \sqrt{2+5 x+3 x^2}}{64 (3+2 x)}+\frac{5 (93+43 x) \left (2+5 x+3 x^2\right )^{3/2}}{48 (3+2 x)^2}-\frac{(8+x) \left (2+5 x+3 x^2\right )^{5/2}}{6 (3+2 x)^3}+\frac{13505 \tanh ^{-1}\left (\frac{5+6 x}{2 \sqrt{3} \sqrt{2+5 x+3 x^2}}\right )}{256 \sqrt{3}}-\frac{3487}{256} \sqrt{5} \tanh ^{-1}\left (\frac{7+8 x}{2 \sqrt{5} \sqrt{2+5 x+3 x^2}}\right )\\ \end{align*}
Mathematica [A] time = 0.110783, size = 120, normalized size = 0.73 \[ \frac{1}{768} \left (-\frac{4 \sqrt{3 x^2+5 x+2} \left (288 x^5-1896 x^4+1944 x^3+64332 x^2+143533 x+89224\right )}{(2 x+3)^3}+10461 \sqrt{5} \tanh ^{-1}\left (\frac{-8 x-7}{2 \sqrt{5} \sqrt{3 x^2+5 x+2}}\right )+13505 \sqrt{3} \tanh ^{-1}\left (\frac{6 x+5}{2 \sqrt{9 x^2+15 x+6}}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 237, normalized size = 1.4 \begin{align*}{\frac{67}{600} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}} \left ( x+{\frac{3}{2}} \right ) ^{-2}}-{\frac{197}{125} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}} \left ( x+{\frac{3}{2}} \right ) ^{-1}}-{\frac{3487}{1000} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}+{\frac{1645+1974\,x}{240} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}+{\frac{2215+2658\,x}{128}\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}}}+{\frac{13505\,\sqrt{3}}{768}\ln \left ({\frac{\sqrt{3}}{3} \left ({\frac{5}{2}}+3\,x \right ) }+\sqrt{3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}}} \right ) }-{\frac{3487}{480} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{3}{2}}}}-{\frac{3487}{256}\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}+{\frac{3487\,\sqrt{5}}{256}{\it Artanh} \left ({\frac{2\,\sqrt{5}}{5} \left ( -{\frac{7}{2}}-4\,x \right ){\frac{1}{\sqrt{12\, \left ( x+3/2 \right ) ^{2}-16\,x-19}}}} \right ) }+{\frac{985+1182\,x}{250} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{5}{2}}}}-{\frac{13}{120} \left ( 3\, \left ( x+3/2 \right ) ^{2}-4\,x-{\frac{19}{4}} \right ) ^{{\frac{7}{2}}} \left ( x+{\frac{3}{2}} \right ) ^{-3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.53929, size = 297, normalized size = 1.8 \begin{align*} -\frac{67}{200} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}} - \frac{13 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}}}{15 \,{\left (8 \, x^{3} + 36 \, x^{2} + 54 \, x + 27\right )}} + \frac{67 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{7}{2}}}{150 \,{\left (4 \, x^{2} + 12 \, x + 9\right )}} + \frac{329}{40} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} x - \frac{197}{480} \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{3}{2}} - \frac{197 \,{\left (3 \, x^{2} + 5 \, x + 2\right )}^{\frac{5}{2}}}{50 \,{\left (2 \, x + 3\right )}} + \frac{1329}{64} \, \sqrt{3 \, x^{2} + 5 \, x + 2} x + \frac{13505}{768} \, \sqrt{3} \log \left (\sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2} + 3 \, x + \frac{5}{2}\right ) + \frac{3487}{256} \, \sqrt{5} \log \left (\frac{\sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}}{{\left | 2 \, x + 3 \right |}} + \frac{5}{2 \,{\left | 2 \, x + 3 \right |}} - 2\right ) - \frac{159}{16} \, \sqrt{3 \, x^{2} + 5 \, x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.51789, size = 509, normalized size = 3.08 \begin{align*} \frac{13505 \, \sqrt{3}{\left (8 \, x^{3} + 36 \, x^{2} + 54 \, x + 27\right )} \log \left (4 \, \sqrt{3} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (6 \, x + 5\right )} + 72 \, x^{2} + 120 \, x + 49\right ) + 10461 \, \sqrt{5}{\left (8 \, x^{3} + 36 \, x^{2} + 54 \, x + 27\right )} \log \left (-\frac{4 \, \sqrt{5} \sqrt{3 \, x^{2} + 5 \, x + 2}{\left (8 \, x + 7\right )} - 124 \, x^{2} - 212 \, x - 89}{4 \, x^{2} + 12 \, x + 9}\right ) - 8 \,{\left (288 \, x^{5} - 1896 \, x^{4} + 1944 \, x^{3} + 64332 \, x^{2} + 143533 \, x + 89224\right )} \sqrt{3 \, x^{2} + 5 \, x + 2}}{1536 \,{\left (8 \, x^{3} + 36 \, x^{2} + 54 \, x + 27\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int - \frac{20 \sqrt{3 x^{2} + 5 x + 2}}{16 x^{4} + 96 x^{3} + 216 x^{2} + 216 x + 81}\, dx - \int - \frac{96 x \sqrt{3 x^{2} + 5 x + 2}}{16 x^{4} + 96 x^{3} + 216 x^{2} + 216 x + 81}\, dx - \int - \frac{165 x^{2} \sqrt{3 x^{2} + 5 x + 2}}{16 x^{4} + 96 x^{3} + 216 x^{2} + 216 x + 81}\, dx - \int - \frac{113 x^{3} \sqrt{3 x^{2} + 5 x + 2}}{16 x^{4} + 96 x^{3} + 216 x^{2} + 216 x + 81}\, dx - \int - \frac{15 x^{4} \sqrt{3 x^{2} + 5 x + 2}}{16 x^{4} + 96 x^{3} + 216 x^{2} + 216 x + 81}\, dx - \int \frac{9 x^{5} \sqrt{3 x^{2} + 5 x + 2}}{16 x^{4} + 96 x^{3} + 216 x^{2} + 216 x + 81}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.29896, size = 425, normalized size = 2.58 \begin{align*} -\frac{1}{128} \,{\left (2 \,{\left (12 \, x - 133\right )} x + 1197\right )} \sqrt{3 \, x^{2} + 5 \, x + 2} - \frac{3487}{256} \, \sqrt{5} \log \left (\frac{{\left | -4 \, \sqrt{3} x - 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}{{\left | -4 \, \sqrt{3} x + 2 \, \sqrt{5} - 6 \, \sqrt{3} + 4 \, \sqrt{3 \, x^{2} + 5 \, x + 2} \right |}}\right ) - \frac{13505}{768} \, \sqrt{3} \log \left ({\left | -2 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )} - 5 \right |}\right ) - \frac{203604 \,{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{5} + 1334970 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{4} + 10053790 \,{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{3} + 12051375 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{2} + 20819415 \, \sqrt{3} x + 4639299 \, \sqrt{3} - 20819415 \, \sqrt{3 \, x^{2} + 5 \, x + 2}}{384 \,{\left (2 \,{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )}^{2} + 6 \, \sqrt{3}{\left (\sqrt{3} x - \sqrt{3 \, x^{2} + 5 \, x + 2}\right )} + 11\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]